<?php
require_once("lib/db_connection.php");
$autoid = $_GET['autoid'];
$autoid = base64_decode($autoid);
$query_delete = "DELETE FROM queue_tbl WHERE autoid='".$autoid."'";
mysql_query($query_delete) or die("DELETE QUEUE ".mysql_error());

echo "<script type='text/javascript'> 
window.location.href = 'queue_list.php';
</script>";
?>
<!--
function jsdelete(id)
{
answer = confirm("Are you sure you want to delete this record?");
if(answer)
{
window.location.href = "queue_delete.php?autoid="+id;
}
}
-->